PreviousNextTracker indexSee it online !

(179/314) 3473853 - Groovy shell - evaluate selection in shell fails


Groovy shell itself work.

But selections in an (untitled) buffer does not, neither does evaluate buffer.

Groovy fragment:

scores = [ "Brett":100, "Pete":"Did not finish", "Andrew":86.87934 ]
println scores["Pete"]

Output in Groovy shell:
groovy:000> scores = [ \"Brett\":100, \"Pete\":\"Did not finish\", \"Andrew\":86.87934 ]\nprintln scores[\"Pete\"]\n
scores = [ \"Brett\":100, \"Pete\":\"Did not finish\", \"Andrew\":86.87934 ]\nprintln scores[\"Pete\"]\n
ERROR org.codehaus.groovy.control.MultipleCompilationErrorsException:
startup failed:
groovysh_parse: 1: unexpected char: '\' @ line 1, column 12.
scores = [ \"Brett\":100, \"Pete\":\"Did not finish\", \"Andrew\":86.87934 ]\nprintln scores[\"Pete\"]\n
^

1 error

at java_lang_Runnable$run.call (Unknown Source)
groovy:000> scores = [ \"Brett\":100, \"Pete\":\"Did not finish\", \"Andrew\":86.87934 ]\nprintln scores[\"Pete\"]\n
scores = [ \"Brett\":100, \"Pete\":\"Did not finish\", \"Andrew\":86.87934 ]\nprintln scores[\"Pete\"]\n
ERROR org.codehaus.groovy.control.MultipleCompilationErrorsException:
startup failed:
groovysh_parse: 1: unexpected char: '\' @ line 1, column 12.
scores = [ \"Brett\":100, \"Pete\":\"Did not finish\", \"Andrew\":86.87934 ]\nprintln scores[\"Pete\"]\n
^

1 error

at java_lang_Runnable$run.call (Unknown Source)


v 1.0 with built-in groovy
jEdit 4.4.2 on Mac os X 10.7

Submitted jnp1234 - 2012-01-14 - 19:50:30z Assigned nobody
Priority 5 Category None
Status Open Group None
Resolution None Visibility No

Comments

Attachments